package com.czkt.springboot_mybatis_test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czkt.springboot_mybatis_test.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    @Select("select * from crm.sys_role where role_name like concat('%',#{roleName},'%') limit #{pageIndex},#{pageSize}")
    public List<SysRole> roleList(@Param("roleName") String roleName,@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize);
}
